/**$Licence:
 *   Use this however/wherever you like, just don't blame me if it breaks anything.
 *   Copyright (C) 2008 - 2013 xingsheng.zhu@gmail.com All rights reserved.
 */
package com.blazemina.executor;

import com.blazemina.CommandContext;

/**
 * @author JackChu
 * @version 2.0.0 2013-2-20 下午6:25:21
 */
public interface BlazeminaExecutors {
	
	/**
	 * 是不是线程池方式
	 * @return
	 */
	public boolean isThreadPool();
	
	/**
	 * 添加线程执行组
	 * @param groupName 组名
	 * @param groupSize 组中线程数量
	 * @param sequence 此执行组中命令是否需要按顺序执行 
	 */
	public void addExecutorGroup(String groupName,int groupSize,boolean sequence);
	
	
	public void execute(CommandContext commandContext,RouteInfo routeInfo);
	
	

}
